/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.x3.purchasing.produk;

import java.util.List;

/**
 *
 * @author kris
 */
public interface ProdukDAO {

    public void insert(Produk produk) throws Exception;

    public void update(Produk produk) throws Exception;

    public void delete(int id) throws Exception;

    public Produk get(int id) throws Exception;

    public List<Produk> getByKategori(int id, int start, int end) throws Exception;

    public int countKategori(int id) throws Exception;

    public List<Produk> gets(int idVendor) throws Exception;

    public List<Produk> gets() throws Exception;

    public List<Produk> gets(int start, int end) throws Exception;

    public List<Produk> getOrderByVendor(int idVendor);
   
}
